package com.meilai.project.entity.middleware;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 张驰
 * @date 2020/12/3 10:35
 */
@Data
@TableName("message_sms")
@NoArgsConstructor
@AllArgsConstructor
public class MessageSms {
    @TableId(value = "id",type = IdType.AUTO)
    Long id;
    String mobile;
    String text;
    String tpl_id;
    String tpl_value;
    String result;
    LocalDateTime created_at;
    LocalDateTime updated_at;

    public MessageSms(String mobile, String text, String result) {
        this.mobile = mobile;
        this.text = text;
        this.result = result;
    }

    public MessageSms(String mobile, String tpl_id, String tpl_value, String result) {
        this.mobile = mobile;
        this.tpl_id = tpl_id;
        this.tpl_value = tpl_value;
        this.result = result;
    }
}
